<%@page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page contentType="text/html;charset=utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>所有订单 -- 当当网</title>
		<!-- 引入外部 css 文件 -->
		<link rel="stylesheet" href="../tarena.css" type="text/css" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link rel="stylesheet" href="../gwap.css" type="text/css" />
		<link href="../css/my_order.css" rel="stylesheet" type="text/css" />
		<link href="../css/mydd_title.css" rel="stylesheet"
			type="text/css" />
		<link href="../css/mydd_leftnavi.css" rel="stylesheet"
			type="text/css" />
		<link href="../css/my_dd.css" rel="stylesheet" type="text/css" />
		<link href="../css/mydd_public.css" rel="stylesheet"
			type="text/css" />
	</head>
	<body>

		<div align="center">
			<!--页头开始-->
			
			<%@include file="../common/head.jsp" %>
			<table width="962" border="0" cellpadding="0" cellspacing="0"
				class="TableJianJu">
				<tr>
					<td width="962" height="10">
					</td>
				</tr>
			</table>
			<!--页头结束-->
		</div>

		<!--操作区-->
		<div class="mdtitle">
			<div class="mdtitle_cont">
				<div class="mdtitle_img">
					<img src="../images/order/wddd_pic.gif" />
				</div>
				<div class="mdtitle_lasttime">
					<span class="gray666" id="loginfospan"></span>
				</div>
				<div class="mdtitle_navi">
					<ul class="mdtitle_ul">
						<li>
							需支付的订单
							<span id="payspan" class="font_b">(0)</span>
						</li>
						<li>
							确认收货
							<span id="receiptspan" class="font_b">(0)</span>
						</li>
						<li>
							写评论
							<span id="reviewspan" class="font_b">(0)</span>
						</li>
					</ul>
				</div>
			</div>
			<div class="mdtitle_shadow"></div>
		</div>
		<div class="main_frame">
			<!--左栏-->
			<div class="mdlnavi">
				<div class="left_gr">
					<div class="left_gr_pic">
						<img id="picimg" width='35' height='35'
							src="../images/order/default.gif" />
					</div>
					<div class="left_gr_text">
					<br/>
					<br/>
						<div class="my_nickname" id="usernamediv">
							[
							<span class="font_12_666"><s:property value="#session.user_key.name"/></span>]
						</div>
						<div class="my_message1">
							晋级积分:
							<span class="font_b" id="pointspan">100</span>
						</div>
						<div id="p_mangageLink">
							我的个人空间
							<img class="arrow_manage" src="../images/order/arrow_manage.gif" />
						</div>
					</div>
					<div class="clear"></div>
				</div>

				<div class="left_dd">
					<div class="title">
						我的订单
					</div>

					<ul>
						<li>
							&nbsp;&nbsp;&nbsp;订单列表
						</li>
					</ul>
				</div>


				<div class="left_dd">
					<div class="title">
						个人信息管理
					</div>
					<ul>
						<li>
							<a name="profileleft" href="#"
								target="_parent">编辑个人档案</a>
						</li>
						<li>
							<a name="myemail" href="#" target="_parent">修改email地址</a>
						</li>
						<li class="lilast">
							<a name="mypassword" href="#"
								target="_parent">修改密码</a>
						</li>
					</ul>
				</div>
				<!--个人信息结束-->
			</div>
			<!-- 左栏结束 -->
			<!--账户右栏开始-->
			<form action="deleteoallorder.action" method="post">
			<div class="main_right">
				<table cellpadding="0" cellspacing="0" border="0" width="100%">
					<tbody>
						<tr>
							<td>
								<div id="orderList">
									<table class="tabl_order">
										<tbody>
											<tr class="tabl_titlebj">
												<td class="b_line td_w_1">
													订单号
												</td>

												<td class="l_line td_w_2">
													收货人
												</td>
												<td class="l_line td_w_3">
													付款方式
												</td>
												<td class="l_line td_w_4">
													订单总金额
												</td>
												<td class="l_line td_w_5">
													订单状态
												</td>
												<td class="l_line td_w_6">
													<span class="text_time">下单时间</span>
													<span class="img_time"><img
															src="../images/order/pic_time_1.gif" title="按时间顺序" /> </span>
												</td>
												<td class="l_line td_w_1">
													商家
												</td>
												<td class="l_line td_w_7">
													操作
												</td>

											</tr>
													<!-- 订单循环开始 -->	
										<s:iterator value="orderList">
											<tr
												style="background-color: rgb(255, 255, 255); font-weight: normal;"
												onmouseover="this.style.backgroundColor = '#f4f4f4';"
												onmouseout="this.style.fontWeight = 'normal';this.style.backgroundColor = '#fff';">
												<td nowrap="nowrap">
													<input type="checkbox" name="orderIds" value="id"/>
													<s:property value="id"/>
												</td>
												<td class="text_c">
													<span title="<s:property value="receiveName" />">
													<s:property value="receiveName" /></span>
												</td>
												<td class="text_c">
													<span title="货到付款">是</span>
												</td>
												<td>
													￥<s:property value="totalPrice" />
												</td>
												<td class="text_c">
													<s:if test="status == 0">
														未发货
													</s:if>
													<s:else>
														已发货
													</s:else>
												</td>
												<td title="<s:property value="orderTime" />">
													<s:property value="orderTime" />
												</td>
												<td class="text_c">
													<span title="当当网">当当网</span>
												</td>
												<td class="text_c">
													<span class="c_gray"> 
													<input type="button" value="删除"  onclick="(location='deleteOrder.action?orderId=<s:property value="id" />')"/>
													
													 <input type="button" value="详细"
															disabled="disabled" /> </span>
												</td>
											</tr>
											<!-- 订单循环结束-->	
											</s:iterator>
										</tbody>
									</table>
									<div class="turnpage">
										<div>
											（共<s:property value="orderList.size"/>条）
											<input type="submit" value="Delete All Order" 
											/>
										</div>
									</div>
								</div>
							</td>
						</tr>
					</tbody>
				</table>
			</div>
			<!--账户右栏结束-->
			</form>
		</div>
		<div id="tag_box" style="display: none; position: absolute;"></div>
		<div id="messageZone" class="box_loading">
			<p>
				请稍候...
			</p>
		</div>
		<div align="center">
			<!--页尾开始 -->
			<!-- 产权申明 -->
			<%@include file="../common/foot.jsp" %>
			<!--页尾结束 -->
		</div>
	</body>
</html>
